﻿using System;
using Validate.Library;

namespace Project.Model
{
    /// <summary>
    /// 员工基础信息操作类
    /// </summary>
    public class EmployeeOperateRequest
    {
        /// <summary>
        /// 唯一编码
        /// </summary>
        public int ID
        {
            get; set;
        }

        /// <summary>
        /// 用户编号
        /// </summary>
        public string UserNo
        {
            get; set;
        }

        /// <summary>
        /// 姓名
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "姓名")]
        public string Name
        {
            get; set;
        }


        /// <summary>
        /// 头像地址
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 200, Description = "头像地址")]
        public string PicUrl
        {
            get; set;
        }
        
        /// <summary>
        /// 身份证号码
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "身份证号码")]
        public string Code
        {
            get; set;
        }

        /// <summary>
        /// 性别
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 10, Description = "性别")]
        public string Sex
        {
            get; set;
        }

        /// <summary>
        /// 职务
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "职务")]
        public string Post
        {
            get; set;
        }


        /// <summary>
        ///员工类别 MID,MName-1.日薪，2. 月薪
        /// </summary>
        //[Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 10, Description = "员工类别")]
        public int? MID
        {
            get; set;
        }

        ///// <summary>
        ///// MID,MName-1.日薪，2. 月薪
        ///// </summary>
        //public string MName
        //{
        //    get; set;
        //}

        /// <summary>
        /// 地址
        /// </summary>
        //[Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "地址")]
        public string Address
        {
            get; set;
        }

        /// <summary>
        /// 联系电话
        /// </summary>
        //[Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "联系电话")]
        public string Phone
        {
            get; set;
        }

        /// <summary>
        /// 亲属姓名
        /// </summary>
        //[Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "亲属姓名")]
        public string CrashPerson
        {
            get; set;
        }

        /// <summary>
        /// 亲属联系电话
        /// </summary>
        //[Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "亲属联系电话")]
        public string CrashPhone
        {
            get; set;
        }

        /// <summary>
        /// 组织机构
        /// </summary>
        public string OrgaizeName
        {
            get; set;
        }


        /// <summary>
        /// 工种
        /// </summary>
        //[Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "工种")]
        public string WorkType
        {
            get; set;
        }

        /// <summary>
        ///项目编号 
        /// </summary>
        public string ProjectNo
        {
            get; set;
        }

        /// <summary>
        /// 月薪
        /// </summary>
        public decimal? MonthMoney
        {
            get; set;
        }

        /// <summary>
        /// 日薪
        /// </summary>
        public decimal? DayMoney
        {
            get; set;
        }

        /// <summary>
        /// 小时工资
        /// </summary>
        public decimal? OverMoney
        {
            get; set;
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string Descrption
        {
            get; set;
        }

        /// <summary>
        /// 开户银行
        /// </summary>
        //[Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "开户银行")]
        public string BankName
        {
            get; set;
        }

        /// <summary>
        /// 银行账户
        /// </summary>
        //[Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "银行账户")]
        public string BankNo
        {
            get; set;
        }

        /// <summary>
        /// 信用等级
        /// </summary>
        public string Credit
        {
            get; set;
        }

        /// <summary>
        /// 岗位工资
        /// </summary>
        public double? PostMoney
        {
            get; set;
        }

        /// <summary>
        ///社保缴费 
        /// </summary>
        public double? SocialMoney
        {
            get; set;
        }

        /// <summary>
        /// 公积金
        /// </summary>
        public double? HouseMoney
        {
            get; set;
        }

        /// <summary>
        ///是否在职 
        /// </summary>
        public bool? ZTBS
        {
            get; set;
        }
    }
}
